package com.gulimall.product.dao;

import com.gulimall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * spu信息
 * 
 * @author Rookie-886
 * @email ${email}
 * @date 2021-03-14 16:30:53
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    @Update("update pms_spu_info set update_time = now(),publish_status = #{status} where id = #{spuId}")
    int updateStatus(@Param("spuId") Long spuId, @Param("status") int status);
}
